


def extract_args(args:dict, targets:list, keys:list):
	if len(targets) != len(keys):
		raise ValueError("targets和keys长度不一致")

	return {k: args[t] for t, k in zip(targets, keys) if t in args}